package com.ruoyi.paper.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论文主页数据内容对象 paper
 * 
 * @author moyu
 * @date 2023-03-07
 */
public class Paper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 题名 */
    @Excel(name = "题名")
    private String title;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 发表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paperTime;

    /** 论文类型 */
    @Excel(name = "数据库")
    private String paperType;

    /** 被引用数 */
    @Excel(name = "被引用数")
    private Long referenceNumber;

    /** 下载数 */
    @Excel(name = "下载数")
    private Long downloadNumber;

    /** 详情链接 */
    @Excel(name = "详情链接")
    private String datailUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setPaperTime(Date paperTime) 
    {
        this.paperTime = paperTime;
    }

    public Date getPaperTime() 
    {
        return paperTime;
    }
    public void setPaperType(String paperType) 
    {
        this.paperType = paperType;
    }

    public String getPaperType() 
    {
        return paperType;
    }
    public void setReferenceNumber(Long referenceNumber) 
    {
        this.referenceNumber = referenceNumber;
    }

    public Long getReferenceNumber() 
    {
        return referenceNumber;
    }
    public void setDownloadNumber(Long downloadNumber) 
    {
        this.downloadNumber = downloadNumber;
    }

    public Long getDownloadNumber() 
    {
        return downloadNumber;
    }
    public void setDatailUrl(String datailUrl) 
    {
        this.datailUrl = datailUrl;
    }

    public String getDatailUrl() 
    {
        return datailUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("source", getSource())
            .append("paperTime", getPaperTime())
            .append("paperType", getPaperType())
            .append("referenceNumber", getReferenceNumber())
            .append("downloadNumber", getDownloadNumber())
            .append("datailUrl", getDatailUrl())
            .toString();
    }
}
